package com.shiroha.video.pojo;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.shiroha.common.handler.UUIDTypeHandler;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.UUID;

/**
 * 点赞表
 */
@Data
@Table(value = "like", schema = "public")
public class Like {
    private Long id;                // 点赞ID
    private Long workId;            // 作品ID
    @Column(typeHandler = UUIDTypeHandler.class)
    private UUID userId;          // 用户ID
    private Long commentId;         // 评论ID
    private boolean isDeleted;      // 逻辑删除
    private LocalDateTime createdAt;
}
